package com.jic.interaction.weChatCardAndOffers.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Auther YGH
 * @DATE 2020/11/11/14:48
 */
@Data
public class WeChatCardAndOffers {

    @ApiModelProperty(notes = "活动Id")
    private String promotionId;
    @ApiModelProperty(notes = "优惠券种类 0电子券 1实体券")
    private Integer couponType;
    @ApiModelProperty(notes = "优惠券范围")
    private Integer couponPlatform;
    @ApiModelProperty(notes = "id领取总数限制")
    private Long idLimitNum;
    @ApiModelProperty(notes = "id每日领取数量限制")
    private Long idLimitDayNum;
    @ApiModelProperty(notes = "基础触发类型")
    private List<String> triggerType;
    @ApiModelProperty(notes = "拼团活动触发集合,对象为拼团活动Id")
    private List<String> patchGroupTriggerList;
    @ApiModelProperty(notes = "秒杀活动触发集合,对象为秒杀活动Id")
    private List<String> speedKillTriggerList;
    @ApiModelProperty(notes = "金额抵扣类型 0 商品券,1运费券")
    private Integer amountDeductType;
    @ApiModelProperty(notes = "优惠方式,0金额券,1折扣券")
    private Integer couponMode;
    @ApiModelProperty(notes = "优惠券面值单位元")
    private BigDecimal couponAmount;
    @ApiModelProperty(notes = "优惠折扣")
    private String discountNum;
    @ApiModelProperty(notes = "折扣上限单位元")
    private BigDecimal discountLimit;
    @ApiModelProperty(notes = "优惠券发放总数")
    private Integer grantTotalNum;
    @ApiModelProperty(notes = "使用说明")
    private String couponUseDesc;
    @ApiModelProperty(notes = "使用开始时间")
    private Date couponUseStartTime;
    @ApiModelProperty(notes = "使用结束时间")
    private Date couponUseEndTime;
    @ApiModelProperty(notes = "订单总金额限制单位元")
    private BigDecimal useTotalAmountLimit;

    @ApiModelProperty(notes = "创建人姓名")
    private String creatorName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(notes = "创建时间")
    private Date createTime;

    @ApiModelProperty(notes = "已领取数量")
    private Long receiveNum;

    @ApiModelProperty(notes = "已使用数量")
    private Long useNum;

    @ApiModelProperty(notes = "已发放数量")
    private Long grantNum;

    private String deptName;

    private String deptId;
}
